package com.ruoyi.server.api.membershipRelationships.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员与用户中间表对象 membership_relationships
 *
 * @author zmh
 * @date 2024-06-12
 */
public class MembershipRelationships extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员与用户中间表（张梦涵） */
    private Long id;

    /** 会员类型 */
    @Excel(name = "会员类型")
    private Long bindId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberUserId;


    /** 启用状态（0启用.1禁用） */
    @Excel(name = "启用状态", readConverterExp = "0=启用.1禁用")
    private Long aenableStatus;

    /** 到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    /** 删除标识（0显示.1删除） */
    private Long delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBindId(Long bindId)
    {
        this.bindId = bindId;
    }

    public Long getBindId()
    {
        return bindId;
    }
    public void setMemberUserId(Long memberUserId)
    {
        this.memberUserId = memberUserId;
    }

    public Long getMemberUserId()
    {
        return memberUserId;
    }
    public void setAenableStatus(Long aenableStatus)
    {
        this.aenableStatus = aenableStatus;
    }

    public Long getAenableStatus()
    {
        return aenableStatus;
    }
    public void setExpirationTime(Date expirationTime)
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime()
    {
        return expirationTime;
    }
    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bindId", getBindId())
            .append("memberUserId", getMemberUserId())
            .append("aenableStatus", getAenableStatus())
            .append("expirationTime", getExpirationTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
